package com.wondertek.mist.utils;

import android.content.Context;

public class RUtil {

	public static int getIdentifier(Context context,String name,String defType){
    	return context.getResources().getIdentifier(name, defType, context.getPackageName());
    }
	
	public static int anim(Context context,String name){
		return getIdentifier(context,name,"anim");
	}
	
	public static int attr(Context context,String name){
		return getIdentifier(context,name,"attr");
	}
	
	public static int dimen(Context context,String name){
		return getIdentifier(context,name,"dimen");
	}
	
	public static int drawable(Context context,String name){
		return getIdentifier(context,name,"drawable");
	}
	
	public static int id(Context context,String name){
		return getIdentifier(context,name,"id");
	}
	
	public static int layout(Context context,String name){
		return getIdentifier(context,name,"layout");
	}
	
	public static int menu(Context context,String name){
		return getIdentifier(context,name,"menu");
	}
	
	public static int string(Context context,String name){
		return getIdentifier(context,name,"string");
	}
	
	public static int style(Context context,String name){
		return getIdentifier(context,name,"style");
	}
	
	public static int xml(Context context,String name){
		return getIdentifier(context,name,"xml");
	}
}
